package google.news.worker;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by zhongwei on 2017/1/31.
 */
public class Mirror {

    static int counter = 0;
    private static List<String> mirrors = new ArrayList<>();

    static {
        mirrors.add("http://gg1.zzyjxs.com/search?q=");
        mirrors.add("http://guge.qwsdq.com/search?q=");
        mirrors.add("http://gg.qwghq.com/search?q=");
        mirrors.add("http://xs1.hntvchina.com/search?q=");
    }

    public static String getMirror() {
        int size = mirrors.size();
        return mirrors.get(counter++ % size);
    }
}
